package com.easyjava.utils;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.serializer.SerializerFeature;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class JsonUtils {
        public static String convertObj2Json(Object obj){
            if(null==obj){
                return null;
            }
            return JSON.toJSONString(obj, SerializerFeature.DisableCircularReferenceDetect);
        }
}
